/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.media.entity;

import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 系统运费模板Entity
 * @author 罗天文
 * @version 2018-06-20
 */
public class HkSystemFreight extends DataEntity<HkSystemFreight> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String isexcept;		// 是否除之外
	private String piece;		// 件
	private String money;		// 金额
	private String addPiece;		// 增加件
	private String addMoney;		// 增加金额
	private String provinceId;		// 省
	private String provinceName;		// 省
	private List<HkSystemAreaFreight> hkSystemAreaFreightList = Lists.newArrayList();		// 子表列表


	public HkSystemFreight() {
		super();
	}

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public HkSystemFreight(String id){
		super(id);
	}

	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="是否除之外长度必须介于 0 和 1 之间")
	public String getIsexcept() {
		return isexcept;
	}

	public void setIsexcept(String isexcept) {
		this.isexcept = isexcept;
	}
	
	@Length(min=0, max=11, message="件长度必须介于 0 和 11 之间")
	public String getPiece() {
		return piece;
	}

	public void setPiece(String piece) {
		this.piece = piece;
	}
	
	@Length(min=0, max=11, message="金额长度必须介于 0 和 11 之间")
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
	
	@Length(min=0, max=11, message="增加件长度必须介于 0 和 11 之间")
	public String getAddPiece() {
		return addPiece;
	}

	public void setAddPiece(String addPiece) {
		this.addPiece = addPiece;
	}
	
	@Length(min=0, max=11, message="增加金额长度必须介于 0 和 11 之间")
	public String getAddMoney() {
		return addMoney;
	}

	public void setAddMoney(String addMoney) {
		this.addMoney = addMoney;
	}
	
	@Length(min=0, max=2000, message="省长度必须介于 0 和 2000 之间")
	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}
	
	public List<HkSystemAreaFreight> getHkSystemAreaFreightList() {
		return hkSystemAreaFreightList;
	}

	public void setHkSystemAreaFreightList(List<HkSystemAreaFreight> hkSystemAreaFreightList) {
		this.hkSystemAreaFreightList = hkSystemAreaFreightList;
	}
}